const fwgdDesMap = {
    已完成: 'ywc',
    待完成: 'dwc',
    完成率: 'wcl',
}
const fwgdConfig = [
    {
        title: '测速工单',
        model: 'FW_CSZS',
        icon: 'icon_csgd',
        listModel: ['FW_CSYWC', 'FW_CSDWC', 'CSWCL'],
    },
    {
        title: '光衰整改工单',
        model: 'FW_GSZG',
        icon: 'icon_gszg',
        listModel: ['FW_GSZGYWC', 'FW_GSZGDWC', 'GSZGWCL'],
    },
]
const fwgdDesConfig = [
    {
        label: '已完成',
        icon: 'icon_ywc',
        model: 'ywc',
    },
    {
        label: '待完成',
        icon: 'icon_dwc',
        model: 'dwc',
    },
    {
        label: '完成率',
        icon: 'icon_wcl',
        model: 'wcl',
    },
]
const yxgdCardList = [
    {
        param: '',
        label: '工单总量',
        model: 'YX_CS_GDZL',
        icon: 'zrw',
    },
    {
        param: 'wpd',
        label: '未派单',
        model: 'YX_CS_WPD',
        icon: 'dfprw',
    },
    {
        param: 'ypd',
        label: '已派单',
        model: 'YX_CS_YPD',
        icon: 'ywcrw',
    },
    {
        param: 'ychangd',
        label: '异常单',
        model: 'YX_CS_YCD',
        icon: 'dzxrw',
    },
    {
        param: 'yched',
        label: '已撤单',
        model: 'YX_CS_CD',
        icon: 'yssrw',
    },
    {
        param: 'ygd',
        label: '已归档',
        model: 'YX_CS_YGD',
        icon: 'csrw',
    },
]
const xdgdCardList = [
    {
        label: '当日执行次数',
        model: 'DAY_TASK',
        icon: 'icon_rwcs',
    },
    {
        label: '当月任务数',
        model: 'MONTH_TASK',
        icon: 'icon_zxcs',
    },
    {
        label: '当月执行次数',
        model: 'MONTH_EXE',
        icon: 'icon_dzxcs',
    },
    {
        label: '当月待执行次数',
        model: 'MONTH_EXE_W',
        icon: 'icon_zxl',
    },
    {
        label: '当月执行率',
        icon: 'icon_zxl',
        model: 'dyzxl',
    },
]

const orgIdTransformMap = {
    '004489': 'root',
    '004401': '510',
    '004402': '558',
    '004403': '540',
    '004404': '620',
    '004405': '560',
    '004406': '530',
    '004407': '550',
    '004408': '520',
    '004409': '568',
    '004410': '536',
    '004411': '570',
    '004412': '528',
    '004413': '525',
    '004414': '670',
    '004415': '565',
    '004416': '535',
    '004417': '580',
    '004418': '556',
    '004419': '531',
    '004420': '526',
    '004421': '538',
}

const jfgdZjDesConfig = [
    {
        label: "预约当日",
        icon: "icon_yydr",
        kpiCode: "JF_0022",
        model: "JFGD_ZJ_YYDR_ZJ_CNT",
    },
    {
        label: "预约当日前",
        icon: "icon_yydrq",
        kpiCode: "JF_0023",
        model: "JFGD_ZJ_YYDRQ_ZJ_CNT",
    },
    {
        label: "预约当日后",
        icon: "icon_yydrh",
        kpiCode: "JF_0024",
        model: "JFGD_ZJ_YYDRH_ZJ_CNT",
    },
    {
        label: "未预约订单量",
        icon: "icon_wyyddl",
        kpiCode: "JF_0025",
        model: "JFGD_ZJ_WYY_DD_CNT",
    },
]

const jfgdDesConfig = [
    {
        label: "竣工量",
        icon: 'jgl'
    },
    {
        label: "退单量",
        icon: "tdl",
    },
    {
        label: "在途量",
        icon: "ztl",
    },
    {
        label: "及时联系量",
        icon: "jslxl",
        desLabel: "联系率",
    },
    {
        label: "及时履约量",
        icon: "jslyl",
        desLabel: "履约率",
    },
    {
        label: "不及时履约量",
        icon: "bjslyl",
    },
]

const jfdgZjDesConfig = [
    {
        kpiCode: "JF_0031",
        model: "JFGD_ZJ_JG_CNT",
    },
    {
        kpiCode: "JF_0033",
        model: "JFGD_ZJ_TD_CNT",
    },
    {
        kpiCode: "JF_0034",
        model: "JFGD_ZJ_ZT_CNT",
    },
    {
        kpiCode: "JF_0026",
        model: "JFGD_ZJ_JSLX_CNT",
        desModel: "JFGD_ZJ_JSLX_RATE",
    },
    {
        kpiCode: "JF_0028",
        model: "JFGD_ZJ_JSLY_CNT",
        desModel: "JFGD_ZJ_JSLY_RATE",
    },
    {
        kpiCode: "JF_0030",
        model: "JFGD_ZJ_BJSLY_CNT",
    },
]
const jfdgYjDesConfig = [
    {
        kpiCode: "JF_0040",
        model: "JFGD_YJ_JG_CNT",
    },
    {
        kpiCode: "JF_0042",
        model: "JFGD_YJ_TD_CNT",
    },
    {
        kpiCode: "JF_0043",
        model: "JFGD_YJ_ZT_CNT",
    },
    {
        kpiCode: "JF_0035",
        model: "JFGD_YJ_JSLX_CNT",
        desModel: "JFGD_YJ_JSLX_RATE",
    },
    {
        kpiCode: "JF_0037",
        model: "JFGD_YJ_JSLY_CNT",
        desModel: "JFGD_YJ_JSLY_RATE",
    },
    {
        kpiCode: "JF_0039",
        model: "JFGD_YJ_BJSLY_CNT",
    },
]

const jfgdXjDesConfig = [
    {
        label: "及时履约量",
        icon: "icon_zrw",
        kpiCode: "JF_0046",
        model: "JFGD_GZ_JSLY_CNT",
        desLabel: "履约率",
        desModel: "JFGD_GZ_JSLY_RATE",
    },
    {
        label: "真实上门履约量",
        icon: "icon_ywc",
        kpiCode: "JF_0048",
        model: "JFGD_GZ_ZSSMLY_CNT",
        desLabel: "履约率",
        desModel: "JFGD_GZ_ZSSMLY_RATE",
    },
    {
        label: "真实测速量",
        icon: "icon_ysx",
        kpiCode: "JF_0050",
        model: "JFGD_GZ_ZSCS_CNT",
        desLabel: "测速率",
        desModel: "JFGD_GZ_ZSCS_RATE",
    },
]

const jfgdXjConfig = [
    {
        label: "工单总量",
        icon: "icon_xj_gdzl",
        kpiCode: "JF_0044",
        model: "JFGD_GZ_GD_CNT",
    },
    {
        label: "及时联系量",
        icon: "icon_xj_jslxl",
        kpiCode: "JF_0045",
        model: "JFGD_GZ_JSLX_CNT",
    },
]


export {
    fwgdDesMap,
    fwgdConfig,
    yxgdCardList,
    xdgdCardList,
    fwgdDesConfig,
    orgIdTransformMap,
    jfgdZjDesConfig,
    jfgdDesConfig,
    jfgdXjDesConfig,
    jfdgYjDesConfig,
    jfdgZjDesConfig,
    jfgdXjConfig
}